package com.pubg.information.mapper;

import com.pubg.information.bean.Comment;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CommentMapper {
    @Select("select * from Comment where rotationid = #{rotationid}")
    public List<Comment> selCommentByRotationId(String rotationid);

    @Insert("insert into comment (name,rotationid,content,cotime) values (#{name},#{rotationid},#{content},#{cotime})")
    public void insComment(Comment comment);
}
